package pl.put.augrelshooter.logic.game.badges;

import pl.put.augrelshooter.logic.detection.opencv.color.ColorDescription;

public class Badge {
	private ColorDescription badgeOuterColor;
	private ColorDescription badgeInnerColor;

	Badge(ColorDescription badgeOuterColor, ColorDescription badgeInnerColor) {
		this.badgeOuterColor = badgeOuterColor;
		this.badgeInnerColor = badgeInnerColor;
	}

	public ColorDescription getBadgeInnerColor() {
		return badgeInnerColor;
	}

	public ColorDescription getBadgeOuterColor() {
		return badgeOuterColor;
	}

	@Override
	public boolean equals(Object o) {
		boolean result = false;

		if (o instanceof Badge) {
			Badge otherBagde = (Badge) o;

			result = (badgeInnerColor.equals(otherBagde.getBadgeInnerColor()) && badgeOuterColor.equals(otherBagde.getBadgeOuterColor()));
		}

		return result;
	}
}
